package com.handong.handserialprogram.model.status;

/**
 * 服务器结束任务
 * 关闭脚环结果反馈类。
 * <p>
 * Created by userKey on 2017/4/14.
 */

public class MissionOverResponse {

    public static final byte OVER_SUCCESS = 0x01;// 服务器结束任务成功
    public static final byte OVER_REJECT = 0x02;// 服务器不允许结束任务
    public static final byte OVER_ERROR = 0x03;//请求结束任务错误
    public static final byte OVER_TIME_OUT = 0x04;//服务器任务结束连接超时
    public static final byte OVER_RESPONSE = 0x05;//请求发出
    public static final byte SERVER_REQUEST = 0x06;// 服务器请求结束任务
    public static final byte SERVER_RESUME_MISSION=0X07;//服务器发起恢复任务
    public static final byte DELETE_ALERT_RESULT=0x08;//删除弹框完成
    public static final byte UPDATE_ROUTE=0X09;//修改线路
    private byte order = 0x00;

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    private String message="";

    public MissionOverResponse(byte responseCode) {
        this.order = responseCode;
    }
    public MissionOverResponse(byte responseCode,String message) {
        this.order = responseCode;
        this.message=message;
    }

    public int getOrder() {
        return order;
    }

    public void setOrder(byte order) {
        this.order = order;
    }

    @Override
    public String toString() {
        return "Ring Close: " + order;
    }
}
